# -*- coding: utf-8 -*-
# @version        : 1.0
# @Create Time    : 2021/10/19 15:47
# @File           : urls.py
# @desc           : 路由文件
from core.schemas import UserCreate, UserRead, UserUpdate
from core.users import auth_backend, fastapi_users
from apps.app01.app01 import app01


# 引入应用中的路由
urlpatterns = [
    {"ApiRouter": app01, "prefix":"/app01", "tags":["App01"]},
    {"ApiRouter": fastapi_users.get_auth_router(auth_backend), "prefix":"/auth/jwt", "tags":["auth"]},
    {"ApiRouter": fastapi_users.get_register_router(UserRead, UserCreate), "prefix": "/auth", "tags" :["auth"],},
    {"ApiRouter": fastapi_users.get_reset_password_router(), "prefix": "/auth", "tags" :["auth"],},
    {"ApiRouter": fastapi_users.get_verify_router(UserRead), "prefix": "/auth", "tags" :["auth"],},
    {"ApiRouter": fastapi_users.get_users_router(UserRead, UserUpdate), "prefix": "/users", "tags" :["users"],}
]



